.class Leu/erikw/PullToRefreshListView$HeaderAnimationListener;
.super Ljava/lang/Object;
.source "PullToRefreshListView.java"

# interfaces
.implements Landroid/view/animation/Animation$AnimationListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Leu/erikw/PullToRefreshListView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "HeaderAnimationListener"
.end annotation


# instance fields
.field private height:I

.field private stateAtAnimationStart:Leu/erikw/PullToRefreshListView$State;

.field final synthetic this$0:Leu/erikw/PullToRefreshListView;


# direct methods
.method private constructor <init>(Leu/erikw/PullToRefreshListView;)V
    .locals 0
    .parameter

    .prologue
    .line 339
    iput-object p1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Leu/erikw/PullToRefreshListView;Leu/erikw/PullToRefreshListView$HeaderAnimationListener;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 339
    invoke-direct {p0, p1}, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;-><init>(Leu/erikw/PullToRefreshListView;)V

    return-void
.end method

.method static synthetic access$1(Leu/erikw/PullToRefreshListView$HeaderAnimationListener;)Leu/erikw/PullToRefreshListView;
    .locals 1
    .parameter

    .prologue
    .line 339
    iget-object v0, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    return-object v0
.end method


# virtual methods
.method public onAnimationEnd(Landroid/view/animation/Animation;)V
    .locals 5
    .parameter "animation"

    .prologue
    const/4 v2, 0x0

    .line 358
    iget-object v3, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->stateAtAnimationStart:Leu/erikw/PullToRefreshListView$State;

    sget-object v4, Leu/erikw/PullToRefreshListView$State;->REFRESHING:Leu/erikw/PullToRefreshListView$State;

    if-ne v1, v4, :cond_2

    move v1, v2

    :goto_0
    #calls: Leu/erikw/PullToRefreshListView;->setHeaderPadding(I)V
    invoke-static {v3, v1}, Leu/erikw/PullToRefreshListView;->access$4(Leu/erikw/PullToRefreshListView;I)V

    .line 360
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    invoke-virtual {v1}, Leu/erikw/PullToRefreshListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 361
    .local v0, lp:Landroid/view/ViewGroup$LayoutParams;
    iget v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->height:I

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 362
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    invoke-virtual {v1, v0}, Leu/erikw/PullToRefreshListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 364
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    #getter for: Leu/erikw/PullToRefreshListView;->scrollbarEnabled:Z
    invoke-static {v1}, Leu/erikw/PullToRefreshListView;->access$2(Leu/erikw/PullToRefreshListView;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 365
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Leu/erikw/PullToRefreshListView;->setVerticalScrollBarEnabled(Z)V

    .line 368
    :cond_0
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    #getter for: Leu/erikw/PullToRefreshListView;->bounceBackHeader:Z
    invoke-static {v1}, Leu/erikw/PullToRefreshListView;->access$5(Leu/erikw/PullToRefreshListView;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 369
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    #setter for: Leu/erikw/PullToRefreshListView;->bounceBackHeader:Z
    invoke-static {v1, v2}, Leu/erikw/PullToRefreshListView;->access$6(Leu/erikw/PullToRefreshListView;Z)V

    .line 371
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    new-instance v2, Leu/erikw/PullToRefreshListView$HeaderAnimationListener$1;

    invoke-direct {v2, p0}, Leu/erikw/PullToRefreshListView$HeaderAnimationListener$1;-><init>(Leu/erikw/PullToRefreshListView$HeaderAnimationListener;)V

    .line 376
    const-wide/16 v3, 0x64

    .line 371
    invoke-virtual {v1, v2, v3, v4}, Leu/erikw/PullToRefreshListView;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 380
    :cond_1
    :goto_1
    return-void

    .line 358
    .end local v0           #lp:Landroid/view/ViewGroup$LayoutParams;
    :cond_2
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    #getter for: Leu/erikw/PullToRefreshListView;->header:Landroid/widget/RelativeLayout;
    invoke-static {v1}, Leu/erikw/PullToRefreshListView;->access$3(Leu/erikw/PullToRefreshListView;)Landroid/widget/RelativeLayout;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/RelativeLayout;->getHeight()I

    move-result v1

    neg-int v1, v1

    goto :goto_0

    .line 377
    .restart local v0       #lp:Landroid/view/ViewGroup$LayoutParams;
    :cond_3
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->stateAtAnimationStart:Leu/erikw/PullToRefreshListView$State;

    sget-object v2, Leu/erikw/PullToRefreshListView$State;->REFRESHING:Leu/erikw/PullToRefreshListView$State;

    if-eq v1, v2, :cond_1

    .line 378
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    sget-object v2, Leu/erikw/PullToRefreshListView$State;->PULL_TO_REFRESH:Leu/erikw/PullToRefreshListView$State;

    #calls: Leu/erikw/PullToRefreshListView;->setState(Leu/erikw/PullToRefreshListView$State;)V
    invoke-static {v1, v2}, Leu/erikw/PullToRefreshListView;->access$8(Leu/erikw/PullToRefreshListView;Leu/erikw/PullToRefreshListView$State;)V

    goto :goto_1
.end method

.method public onAnimationRepeat(Landroid/view/animation/Animation;)V
    .locals 0
    .parameter "animation"

    .prologue
    .line 382
    return-void
.end method

.method public onAnimationStart(Landroid/view/animation/Animation;)V
    .locals 3
    .parameter "animation"

    .prologue
    .line 345
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    #getter for: Leu/erikw/PullToRefreshListView;->state:Leu/erikw/PullToRefreshListView$State;
    invoke-static {v1}, Leu/erikw/PullToRefreshListView;->access$0(Leu/erikw/PullToRefreshListView;)Leu/erikw/PullToRefreshListView$State;

    move-result-object v1

    iput-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->stateAtAnimationStart:Leu/erikw/PullToRefreshListView$State;

    .line 347
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    invoke-virtual {v1}, Leu/erikw/PullToRefreshListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 348
    .local v0, lp:Landroid/view/ViewGroup$LayoutParams;
    iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    iput v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->height:I

    .line 349
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    invoke-virtual {v1}, Leu/erikw/PullToRefreshListView;->getHeight()I

    move-result v1

    iget-object v2, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    #getter for: Leu/erikw/PullToRefreshListView;->headerContainer:Landroid/widget/LinearLayout;
    invoke-static {v2}, Leu/erikw/PullToRefreshListView;->access$1(Leu/erikw/PullToRefreshListView;)Landroid/widget/LinearLayout;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getHeight()I

    move-result v2

    add-int/2addr v1, v2

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 350
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    invoke-virtual {v1, v0}, Leu/erikw/PullToRefreshListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 352
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    #getter for: Leu/erikw/PullToRefreshListView;->scrollbarEnabled:Z
    invoke-static {v1}, Leu/erikw/PullToRefreshListView;->access$2(Leu/erikw/PullToRefreshListView;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 353
    iget-object v1, p0, Leu/erikw/PullToRefreshListView$HeaderAnimationListener;->this$0:Leu/erikw/PullToRefreshListView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Leu/erikw/PullToRefreshListView;->setVerticalScrollBarEnabled(Z)V

    .line 355
    :cond_0
    return-void
.end method
